package com.tx.springboot_demo.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author ：tx
 * @description：对应applicaiton.properties中的值
 * @date ：Created in 2019/4/3 16:32
 * @modified By：
 * @version:
 */
@Component
@ConfigurationProperties(prefix = "mercury") //默认去找application.properties
public class ApplicationProperty {
    private String name;
    private String wantSay;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWantSay() {
        return wantSay;
    }

    public void setWantSay(String wantSay) {
        this.wantSay = wantSay;
    }
}
